<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="model.JsfCoach"%>
<%@page import="model.JsfStaff"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<title>显示我的学生</title>
</head>
<body>
<%
	JsfCoach jsfcoach = (JsfCoach) session.getAttribute("coach");
	JsfStaff jsfstaff = (JsfStaff) session.getAttribute("staff");
	int ps2 = 2;
	int ps3 = 2;
	if(jsfcoach != null)
		ps2 = jsfcoach.getStatus();
	if(jsfstaff != null)
		ps3 = jsfstaff.getStatus();
	%>
<table class="table table-condensed table-hover table-striped">
			<tr>
					<td width="150">客户姓名
					</td>
					<td width="150">客户电话 
					</td>
					<td width="150">客户年龄 
					</td>
					<td width="150">客户性别
					</td>
					<td width="150">客户签到次数 
					</td>
			</tr>
			<s:iterator value="orderlist" var="var">
				<tr>
					<td width="150"><s:property value="#var.id.jsfClient.name" />
					</td>
					<td width="150"><s:property value="#var.id.jsfClient.phoneNum" />
					</td>
					<td width="150"><s:property value="#var.id.jsfClient.age" />
					</td>
					<td width="150">客户性别：
					<s:if test="%{#var.id.jsfClient.sex == 1}">
					男
					</s:if><s:else>
					 女
					 </s:else>
					</td>
					<td width="150"><s:property value="#var.id.jsfClient.checkinNum" />
					</td>
				</tr>
			</s:iterator>
			<tr>
			<td width="150"> 
			<%if( ps2 == 1 ){%>
			<input type="button" value="返回在线课程" class="btn btn-info"
				onclick="location.href ='class_findall?level=5';" />
			<%  }else %>
			<%if( ps3 == 1 ){%>
			<input type="button" value="返回在线课程" class="btn btn-info"
				onclick="location.href ='class_findall?level=4';" />
			<%  }%> 
			</td>
				</tr>
		</table>
</body>
</html>